<script setup>
const props = defineProps({
    titleStr: {
        type: String,
        default: function () {
            return '标题'
        }
    },
    licenseNumber: {
        type: String,
        default: function () {
            return '车牌号'
        }
    },
    linearGradient: {
        type: String,
        default: function () {
            return 'linear-gradient(to right, rgba(216, 241, 217, 1), rgba(255, 255, 255, 1))'
        }
    },
    textColor: {
        default: function () {
            return `rgba(61, 184, 62, 1)`
        }
    }
})
</script>
<template>
    <div>
        <div class="pd-box" :style="{ color: textColor, background: linearGradient }">
            <div class="flex-row">
                <div class="line-box" :style="{ background: textColor }"></div>
                <div class="line-tit">{{ titleStr }}</div>
            </div>
            <div>{{ licenseNumber }}</div>
        </div>
    </div>
</template>
<style scoped lang="scss">
.pd-box {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    // background: linear-gradient(to right, rgba(216, 241, 217, 1), rgba(255, 255, 255, 1));
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 28px;
    // color: rgba(61, 184, 62, 1);
    padding: 0px 96px 0px 32px;
    box-sizing: border-box;
    .flex-row {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .line-box {
        width: 6px;
        height: 100px;
        // background-color: rgba(61, 184, 62, 1);
    }
    .line-tit {
        margin-left: 78px;
    }
}
</style>
